home *** CD-ROM | disk | FTP | other *** search
- Path: newsserv.cs.uni-magdeburg.de!news
- From: Uwe Ilgenstein <ilgenste@sunpool.cs.uni-magdeburg.de>
- Newsgroups: comp.lang.c++
- Subject: Q: Access DS in Vis. C++ 2.0? ***Please*** help!
- Date: Wed, 27 Mar 1996 21:36:08 -0800
- Organization: Univ. of Magdeburg, CS Dept, Germany
- Message-ID: <315A2548.724E@sunpool.cs.uni-magdeburg.de>
- NNTP-Posting-Host: yawp.cs.uni-magdeburg.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I; 16bit)
- CC: tdaum@eva.cs.uni-magdeburg.de
-
- Hi:
- How can I access the DS register in Visual C++ 2.0?
- I have this piece of software that was originally compiled
- with Borland C++ 3.4 and that uses code like:
-
- register int dataSeg;
- void *newAddress;
- dataSeg = _DS;
- _DS = currentBlock;
- newAddress = (void *) LocalAlloc(LPTR, size);
- _DS = dataSeg;
-
- Any help, hints, or suggestions are greatly appreciated.
-
- Thanks,
- Thorsten
-
- P.S. Please reply via e-mail, most groups on my nttp host have a one day
- expire and articles often get lost!
-